package com.sample.test.model;

import java.math.BigDecimal;

import com.swak.annotation.ColumnStrategy;
import com.swak.annotation.Table;
import com.swak.persistence.Model;

import lombok.Getter;
import lombok.RequiredArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * 订单服务
 * <p>
 * 
 * @Accessors(chain = true) 不能和 cglib 一起使用
 * 
 * @author lifeng
 * @date 2021年1月29日 下午3:49:36
 */
@Getter
@Setter
@Accessors(chain = true)
@ToString
@Table(value = "t_order", strategy = ColumnStrategy.Simple)
@RequiredArgsConstructor(staticName = "of")
public class Order extends Model<Order, Long> {

	private String orderNo;
	private String commodityCode;
	private Integer count;
	private BigDecimal amount;
}